package com.example.springboottest153.dao;


import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Repository;

/**
 * @author: xianjin.lu
 * @date:  2022/
 * @description: 接口有多个实现类 通过@Primary 注解 设置为首选实现类

 */

@Repository
@Primary
public class DaoDemo01Impl02 implements DaoDemo01 {

    @Override
    public void method() {
        System.out.println("接口实现类02");
    }
}
